package com.visionet.school.app.web.repository.dynamic;

import com.visionet.school.app.web.entity.dynamic.Dynamic;
import com.visionet.school.app.web.entity.dynamic.vo.DynamicVo;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

/**
 * Created by hxpeng on 2017/4/21.
 */
@Repository
public interface DynamicRepository extends PagingAndSortingRepository<Dynamic,String>,JpaSpecificationExecutor<Dynamic> {

    //班级动态列表
//    @Query("from Dynamic as d where d.classId = ?1 and d.isDeleted = 0")
//    List<Dynamic> queryByClassId(String classId);

    Page<DynamicVo> findPage(DynamicVo dynamicVo);

}
